import { Column, Entity } from 'typeorm';
import { CommonEntity } from './common.entity'

@Entity('user_role')
// @Unique('user_role_deleted', ['accountId', 'roleId', 'deletedAt'])
export class UserRoleEntity extends CommonEntity {
  @Column({
    type: 'int',
    nullable: false,
    name: 'user_id',
    comment: '用户id',
  })
  userId: number;

  @Column({
    type: 'int',
    nullable: false,
    name: 'role_id',
    comment: '角色id',
  })
  roleId: number;
}
